# /etc/systemd/system/kubelet.service
[Unit]
Description=Kubernetes Kubelet
After=docker.service
Requires=docker.service

[Service]
ExecStart=/opt/k8s/bin/kubelet \
  --kubeconfig=/etc/kubernetes/kubelet.kubeconfig \
  --bootstrap-kubeconfig=/etc/kubernetes/kubelet-bootstrap.kubeconfig \
  --cert-dir=/etc/kubernetes/cert \
  --config=/etc/kubernetes/kubelet-config.yaml \
  --container-runtime=docker \
  --container-runtime-endpoint=unix:///var/run/containerd/containerd.sock \
  --image-pull-progress-deadline=2m \
  --pod-infra-container-image=3300288317/pause:3.2 \
  --register-node=true \
  --logtostderr=false \
  --log-dir=/var/log/kubelet \
  --log-file=kubelet.log \
  --v=2

[Install]
WantedBy=multi-user.target